PORTNAME=	libcompizconfig
PORTVERSION=	0.8.18
CATEGORIES=	x11-wm
MASTER_SITES=	https://gitlab.com/compiz/${PORTNAME}/uploads/ada252d7170ae626651a98fd03569e1f/

MAINTAINER=	potmaster@BSDforge.com
COMMENT=	Compiz configuration system
WWW=		https://gitlab.com/compiz/libcompizconfig

LICENSE=	GPLv2

BUILD_DEPENDS=	compiz>0:x11-wm/compiz
LIB_DEPENDS=	libprotobuf.so:devel/protobuf

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-static
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

USES=		gettext gmake gnome libtool:keepla pathfix pkgconfig \
		tar:xz xorg
USE_GNOME=	intltool libxml2
USE_XORG=	x11

post-patch:
	@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|'	\
		${WRKSRC}/src/main.c			\
		${WRKSRC}/src/lists.c			\
		${WRKSRC}/src/filewatch.c		\
		${WRKSRC}/backend/ini.c

.include <bsd.port.mk>
